package Webshop;
import DataTypes.AdresseT;

public class Kunde 
{
	private String name;
	private String vorname;
	private String email;
	private AdresseT adresse;
	private int kundeNr;
	private static int letzteKundeNr = 0;
	private Warenkorb warenkorb;
	private String passwort;
	
	public Kunde(String name,String vorname,String email,String passwort, AdresseT adresse)
	{
		letzteKundeNr++;
		this.kundeNr = letzteKundeNr;
		this.name = name;
		this.vorname = vorname;
		this.email = email;
		this.passwort = passwort;
		this.adresse = adresse;
		this.warenkorb = new Warenkorb(this);
	}
	
	
	
	public String getPasswort() {
		return passwort;
	}

	public void setPasswort(String passwort) {
		this.passwort = passwort;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getVorname() {
		return vorname;
	}

	public void setVorname(String vorname) {
		this.vorname = vorname;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public AdresseT getAdresse() {
		return adresse;
	}

	public void setAdresse(AdresseT adresse) {
		this.adresse = adresse;
	}

	public int getKundeNr() {
		return kundeNr;
	}

	public static int getLetzteKundeNr() {
		return letzteKundeNr;
	}

	public Warenkorb getWarenkorb() {
		return warenkorb;
	}

	public void setWarenkorb(Warenkorb warenkorb) {
		this.warenkorb = warenkorb;
	}
}
